package com.mathpractise.model;

import java.util.Date;

/**
 * 答题详情实体类
 */
public class AnswerDetail {
    
    /**
     * 题目ID
     */
    private String questionId;
    
    /**
     * 用户答案
     */
    private Integer userAnswer;
    
    /**
     * 是否正确
     */
    private Boolean correct;
    
    /**
     * 答题时间
     */
    private Date answerTime;
    
    /**
     * 用时（毫秒）
     */
    private Long timeSpent;
    
    public AnswerDetail() {
    }
    
    public AnswerDetail(String questionId, Integer userAnswer, Boolean correct, Date answerTime, Long timeSpent) {
        this.questionId = questionId;
        this.userAnswer = userAnswer;
        this.correct = correct;
        this.answerTime = answerTime;
        this.timeSpent = timeSpent;
    }
    
    // Getters and setters
    
    public String getQuestionId() {
        return questionId;
    }
    
    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }
    
    public Integer getUserAnswer() {
        return userAnswer;
    }
    
    public void setUserAnswer(Integer userAnswer) {
        this.userAnswer = userAnswer;
    }
    
    public Boolean getCorrect() {
        return correct;
    }
    
    public void setCorrect(Boolean correct) {
        this.correct = correct;
    }
    
    public Date getAnswerTime() {
        return answerTime;
    }
    
    public void setAnswerTime(Date answerTime) {
        this.answerTime = answerTime;
    }
    
    public Long getTimeSpent() {
        return timeSpent;
    }
    
    public void setTimeSpent(Long timeSpent) {
        this.timeSpent = timeSpent;
    }
}